package com.chemical.search.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *@className:StructureInfo.java
 *@classDescription:
 *@author:MChen
 *@createTime:2012-4-19
 */
@Entity
@Table(name = "structure_info")
public class StructureInfo {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer si_id;	//主键Id
	@OneToOne
	@JoinColumn(name = "scr",nullable = false)
	private BaseAttribute baseAttribute;	//化学结构比较和登录确认的化合物唯一编号
	@Column(name = "mol_str")
	private String mol_str;		//识别字符串
	@Column(name = "mol_path")
	private String mol_path;	//mol文件路径
	@Column(name = "mol_desc")
	private String mol_desc;	//mol图片描述信息
	@Column(name = "inputTime",nullable = false)
	private Date inputTime;		//录入时间
	
	public Integer getSi_id() {
		return si_id;
	}
	public void setSi_id(Integer siId) {
		si_id = siId;
	}
	public BaseAttribute getBaseAttribute() {
		return baseAttribute;
	}
	public void setBaseAttribute(BaseAttribute baseAttribute) {
		this.baseAttribute = baseAttribute;
	}
	public String getMol_str() {
		return mol_str;
	}
	public void setMol_str(String molStr) {
		mol_str = molStr;
	}
	public String getMol_path() {
		return mol_path;
	}
	public void setMol_path(String molPath) {
		mol_path = molPath;
	}
	public String getMol_desc() {
		return mol_desc;
	}
	public void setMol_desc(String molDesc) {
		mol_desc = molDesc;
	}
	public Date getInputTime() {
		return inputTime;
	}
	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}
}
